#pragma GCC optimize(2)
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <vector>

using namespace std;
using LL = long long;

int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int k;
    cin >> k;
    int t1 = k / 60;
    int t2 = k % 60;
    if(t2 < 10){
        cout << t1 + 21 << ":" << 0 << t2;
    }else{
        cout << t1 + 21 << ":" << t2 ;
    }



    return 0;
}